import type {RequestConfig} from 'umi';
import {AuthorizationInterceptor} from '@/interceptors/authorization.interceptor';
import {responseError} from '@/interceptors/error-handle.interceptor';
import 'antd/dist/antd.less';
import './styles/reset.less';

export const request: RequestConfig = {
    console.log(123123);
    timeout: 1000,
    headers: {'X-Requested-With': 'XMLHttpRequest'},
    errorConfig: {
        errorThrower: responseError.responseErrorThrower,
        errorHandler: responseError.responseErrorHandler,
    },
    requestInterceptors: [AuthorizationInterceptor.requestInterceptor],
    responseInterceptors: [AuthorizationInterceptor.responseInterceptors],
};

